html,
body {
  margin: 0;
  padding: 0;
}

#main {
  position: relative;
  width: 370px;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#localVideo {
  position: absolute;
  background: #757474;
  top: 10px;
  right: 10px;
  width: 100px;
  height: 150px;
  z-index: 2;
}

#remoteVideo {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: #222;
}
#remoteVideo:hover ~.controls-box,.controls-box:hover{
  opacity: 1;
}
.controls-box {
  z-index: 3;
  bottom: 0;
  left: 0px;
  position: absolute;
  width: 100%;
  text-align: center;
  padding-bottom: 30px;
  opacity: 0;
  transition: opacity .5s ease-in-out;
}
.opacity{
  opacity: 1!important;
}
.controls-v{
  display: flex;
  padding: 10px 10px 30px;
  color: #fff;
  justify-content: space-around;
}
.control-item{
  display: flex;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.control-item.open .icon-maikefengk,.control-item.open .icon-yangshengqi-kai,.control-item.open .icon-shexiangtou{
  display: block;
}
.control-item.open .icon-maikefengg,.control-item.open .icon-yangshengqi-guan,.control-item.open .icon-shexiangtouguanbi{
  display: none;
}
.control-item.close .icon-maikefengk,.control-item.close .icon-yangshengqi-kai,.control-item.close .icon-shexiangtou{
  display: none;
}
.control-item.close .icon-maikefengg,.control-item.close .icon-yangshengqi-guan,.control-item.close .icon-shexiangtouguanbi{
  display: block;
}
.control-icon{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.control-icon>i{
  font-size: 32px;
  color: #000;
}
.control-item-text{
  font-size: 12px;
}
.answer-hangup{
  display: flex;
  justify-content: space-evenly;
}
.user-msg{
  position: absolute;
  top: 116px;
  z-index: 444444;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.avatar{
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background-image: url(../images/tx.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  margin-bottom: 10px;
}
.move{
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}
#toUser {
  border: 1px solid #ccc;
  padding: 7px 0px;
  border-radius: 5px;
  padding-left: 5px;
  margin-bottom: 5px;
}

#toUser:focus {
  border-color: #66afe9;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6)
}

#call {
  width: 70px;
  height: 35px;
  background-color: #00BB00;
  border: none;
  margin-right: 25px;
  color: white;
  border-radius: 5px;
  margin-left: 20px;
}
.call{
  margin-top: 20px;
  margin-left: 20px;
  display: flex;
}
.reply{
  padding: 20px;
  display: flex;
}
.reply video{
  width: 500px;
  height: 300px;
  margin-left: 20px;
  background-color: #000;
}
.controls-hangup,.controls-answer{
  width: 70px;
  height: 35px;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}
#hangup ,#jujue{
 background-color: #FF5151;
}
#answer{
  background-color: green;
}